#ifndef __HTTPMESSAGE_H
#define __HTTPMESSAGE_H

#include <types.h>

#define HTTP_MESSAGE_GET      0
#define HTTP_MESSAGE_POST     1
#define HTTP_MESSAGE_RESPONSE 2


// HTTPMessage es una classe abstracta

class HTTPMessage
{
protected:
    int messageType;
    
public:
    HTTPMessage();
    ~HTTPMessage();
    
    virtual void addHdr(char *hdr, char *value);
    virtual void addVar(char *var, char *value);
    virtual void toString(char *dest, int bufsize);
};

#endif
